package com.qianli.user.ro.auth;

import com.qianli.user.ro.BaseComplete;

import java.io.Serializable;

/**
 * name:芝麻认证
 * auth:ting.li@qianli-inc.com
 * date:2017/12/2215:46
 * version: v1.0.0
 **/
public class ZMCreditRO  extends UserAbastractBaseAuthRO implements BaseComplete, Serializable{

    private static final long serialVersionUID = -1289977258925294098L;
    /**
     * openId
     */
    private String openId;
    /**
     * 姓名
     */
    private String userName;
    /**
     * 身份证
     */
    private String identityNo;
    /**
     * 芝麻分
     */
    private String score;
    /**
     * 认证详情
     */
    private String detail;

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIdentityNo() {
        return identityNo;
    }

    public void setIdentityNo(String identityNo) {
        this.identityNo = identityNo;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override public Boolean isComplete() {
        return null != getOpenId() && getAuthorized();
    }
}
